<template>
<table>
    <tr>
        <td>用户名</td>
        <td><input type="text"></td>
    </tr>
    <tr>
        <td>密码</td>
        <td><input type="password"></td>
    </tr>
    <tr>
        <td colspan="2">
            <button @click="Login">
                登录
            </button>
        </td>
    </tr>
</table>
</template>
<script setup lang="ts">
function Login(){
    alert("用户名:admin\n密码:admin123")
}
</script>